/*
 * @(#)QueryReturnType.java
 * Date 2013-08-27
 * Version 1.0
 * Author Jim Horner
 * Copyright (c)2012
 */


package us.hornerscorners.lamppost.registry.model;

/**
 *
 * @author jim
 */
public enum QueryReturnType {

    LeafClass, ObjectRef;

    /**
     * Method description
     *
     *
     * @param test
     *
     * @return
     */
    public static QueryReturnType toQueryReturnType(String test) {

        QueryReturnType result = null;

        for (QueryReturnType type : QueryReturnType.values()) {

            if (type.toString().equalsIgnoreCase(test)) {

                result = type;
            }
        }

        return result;
    }
}
